<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../style/ucs.css">
    <link rel="stylesheet" href="../content/font/iconfont.css">
    <link rel="stylesheet" href="../style/theme.css">
</head>
<body>
    <div id="giraffe"></div>
    <script type="text/javascript" src="../../dist/libs/u-eventhub.js"></script>
    <script type="text/javascript" src="../../dist/libs/engine.js"></script>
    <script type="text/javascript" src="../../dist/ucsmy-ui.js"></script>

    <script type="text/javascript">
        /*项目详情信息*/
        var ProDetailDM = new UDM({
            value:{
                "ProjectDetail":{
                    "FinancingId":"",
                    "ProjectName":"",
                    "Amount":0,
                    "InvestmentInterest":0,
                    "FinanceRate":0,
                    "ValueBegin":"",
                    "RepayBegin":"",
                    "Duration":0,
                    "FinanceApplyStatus":5,
                    "F_Status":1,
                    "F_StatusName":{
                        status:"",
                        className:"tag-red"
                    },
                    "IAmount":0
                },
                "FinancingDetail":{
                    "TotalRepayment":0,
                    "FinancingCost":0
                },
                "CallbackAccount":{
                    "AccountName":"",
                    "AccountNo":"",
                    "BankName":"",
                    "BankCode":"",
                    "BankLogo":"",
                    "BankIconUrl":""
                }
            }
        });
        //个人实名信息
        var realNameInfoDM = new UDM({
            value:{
                AccType:1,
                Mobile:"155152131",
                IsBindMobile:true,//是否绑定手机
                BindMobileUrl:"../UserInfo/index.html",//绑定手机链接
                IsBindIDCard:false,//是否验证身份
                BindIDCardUrl:"../UserInfo/index.html",//验证身份链接
                IsBindBankCard:false,//是否绑卡
                BindBankCardUrl:"../MyBankCard/index.html",//绑卡链接
                Current:"FinanceAccount",  //当前选中菜单
                InvestAccountUrl:"../MyAccount11/index.html",//投资账户总览链接
                InvestListUrl:"../MyInvest/index.html",//投资记录链接
                MyBankCardUrl:"../MyBankCard/index.html",//我的银行卡链接
                InvestInfoUrl:"../UserInfo/index.html",//投资个人信息
                InvestMessageUrl:"../UserMessageCenter/index.html",//投资消息中心
                FinanceAccountUrl:"../FinanceAccount/index.html",//融资账户总览链接
                FinanceListUrl:"../FinanceList/index.html",//融资记录链接
                FinanceAccountInfoUrl:"../AccountInfo/index.html",//融资账号信息
                FinanceMessageUrl:"../CompanyMessageCenter/index.html"//融资消息中心
            }
        });
        //导出PDF
        var exportPDF = new UDM({
            onClick:function(html){
                console.log(html);
            }
        });
        //打印
        var printBtn = new UDM({
            onClick:function(){
                console.log("打印");
            }
        });

        /*ajax请求数据*/
        var ajaxFn = function(){
            /*项目详情数据填充*/
            var detail = {
                "ProjectDetail":{
                    "FinancingId":"090895dd-a24b-42f1-a2e4-d7707dc6c947",
                    "ProjectName":"乐享【201608110003】",
                    "Amount":78564000.00,
                    "InvestmentInterest":8.60,
                    "FinanceRate":8.70,
                    "ValueBegin":"2016-08-18",
                    "RepayBegin":"2017-04-20",
                    "Duration":22,
                    "FinanceApplyStatus":5,
                    "F_Status":6,
                    "F_StatusName":{
                        status:"",
                        className:"tag-red"
                    },
                    "IAmount":78564000.00
                },
                "FinancingDetail":{
                    "TotalRepayment":78971241.13,
                    "FinancingCost":411976.70
                },
                "CallbackAccount":{
                    "AccountName":"在世华佗",
                    "AccountNo":"6200*******33410",
                    "BankName":"绵阳商业银行",
                    "BankCode":"485",
                    "BankLogo":"bank-mianyang",
                    "BankIconUrl":"http://ttmy.ucsmy.com/Content/images/bankLogo/bank-icon-my.png"
                }
            }
            ProDetailDM.setValue(detail);

            /*个人实名信息*/
            var realName = {
                AccType:1,
                Mobile:"1531313",
                IsBindMobile:true,//是否绑定手机
                BindMobileUrl:"../UserInfo/index.html",//绑定手机链接
                IsBindIDCard:false,//是否验证身份
                BindIDCardUrl:"../UserInfo/index.html",//验证身份链接
                IsBindBankCard:false,//是否绑卡
                BindBankCardUrl:"../MyBankCard/index.html",//绑卡链接
                Current:"FinanceList",  //当前选中菜单
                InvestAccountUrl:"../MyAccount11/index.html",//投资账户总览链接
                InvestListUrl:"../MyInvest/index.html",//投资记录链接
                MyBankCardUrl:"../MyBankCard/index.html",//我的银行卡链接
                InvestInfoUrl:"../UserInfo/index.html",//投资个人信息
                InvestMessageUrl:"../UserMessageCenter/index.html",//投资消息中心
                FinanceAccountUrl:"../FinanceAccount/index.html",//融资账户总览链接
                FinanceListUrl:"../FinanceList/index.html",//融资记录链接
                FinanceAccountInfoUrl:"../AccountInfo/index.html",//融资账号信息
                FinanceMessageUrl:"../CompanyMessageCenter/index.html"//融资消息中心
            };
            realNameInfoDM.setValue(realName);
        };

        var PageDM = {
            ProDetail:ProDetailDM,
            realNameInfo: realNameInfoDM,
            exportPDF:exportPDF,
            printBtn:printBtn
        };

        UEventHub.on('pageLoad',function(){
            ajaxFn();
        });
    </script>
<script type="text/javascript" src="../PrintFinanceDetail\index.js"></script></body>
</html>